﻿using System;
using System.Linq;
using System.Text;
using SqlSugar;


namespace BCGM.MedicalWisdom.Model.Models
{
    ///<summary>
    ///药品表
    ///</summary>
    [SugarTable("Drug", "WMBLOG_MYSQL")]
    public class Drug
    {
        public Drug()
        {
        }
        /// <summary>
        /// Desc:药品主键
        /// Default:
        /// Nullable:False
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int DrugId { get; set; }
        /// <summary>
        /// Desc:药品名称
        /// Default:
        /// Nullable:False
        /// </summary>
        public string DrugName { get; set; }
        /// <summary>
        /// Desc:药品说明
        /// Default:
        /// Nullable:False
        /// </summary>
        public string DrugFacts { get; set; }
        /// <summary>
        /// Desc:药品Sku外键
        /// Default:
        /// Nullable:True
        /// </summary>
        public int? DrugSkuId { get; set; }
        /// <summary>
        /// Desc:创建人
        /// Default:
        /// Nullable:True
        /// </summary>
        public int? Createdby { get; set; }
        /// <summary>
        /// Desc:创建时间
        /// Default:
        /// Nullable:False
        /// </summary>
        public DateTime CreatedTime { get; set; }
        /// <summary>
        /// Desc:更新人
        /// Default:
        /// Nullable:True
        /// </summary>
        public int? Updatedby { get; set; }
        /// <summary>
        /// Desc:更新时间
        /// Default:
        /// Nullable:False
        /// </summary>
        public DateTime UpdatedTime { get; set; }
        /// <summary>
        /// Desc:删除人
        /// Default:
        /// Nullable:True
        /// </summary>
        public int? Deletedby { get; set; }
        /// <summary>
        /// Desc:删除时间
        /// Default:
        /// Nullable:False
        /// </summary>
        public DateTime DeletedTime { get; set; }
        /// <summary>
        /// Desc:逻辑删除
        /// Default:
        /// Nullable:True
        /// </summary>
        public bool IsDeleted { get; set; }
        /// <summary>
        /// Desc:商品图片
        /// Default:
        /// Nullable:True
        /// </summary>
        public string DrugImg { get; set; }
        /// <summary>
        /// Desc:商品分类Id
        /// Default:
        /// Nullable:True
        /// </summary>
        public int? classifyId { get; set; }
        /// <summary>
        /// Desc:商品库存
        /// Default:
        /// Nullable:True
        /// </summary>
        public int? Stock { get; set; }
    }
}